package com.arpa.wms.domain.dto;

import com.arpa.ntocc.common.domain.entity.BasicEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * <p>
 * 自定义报表DTO
 * </p>
 *
 * @author wangyujie
 * @since 2020-01-14
 */
@Data
@ApiModel(value="DiyReportDTO对象", description="自定义报表")
public class DiyReportDTO extends BasicEntity {


    @ApiModelProperty(value = "唯一code")
    private String code;

    @ApiModelProperty(value = "组织机构编码")
    private String branchCode;

    @ApiModelProperty(value = "报表名称")
    private String name;

    @ApiModelProperty(value = "报表类型：0 运输单，1 订单")
    private Integer type;

    @ApiModelProperty(value = "是否是默认0-不是，1-是")
    private Integer isDefault;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建时间起始")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtCreatedStart;

    @ApiModelProperty(value = "创建时间终止")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtCreatedEnd;

    @ApiModelProperty(value = "第几页")
    private Integer pageNum=1;

    @ApiModelProperty(value = "每页条数")
    private Integer pageSize=10;

    @ApiModelProperty(value = "排序字段")
    private String sortField;

    @ApiModelProperty(value = "排序方式")
    private String sortType;
}
